package com.zking.ssm.DYM.service.impl;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.sun.prism.impl.Disposer;
import com.zking.ssm.DYM.mapper.HotelRoomMoneyMapper;
import com.zking.ssm.DYM.model.HotelRoomMoney;
import com.zking.ssm.DYM.service.IHotelRoomMoneyService;
import com.zking.ssm.util.PageBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.annotation.Id;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description
 * @Author XXXXX
 * @Date 2021/01/19 21:45
 */
@Service
public class HotelRoomMoneyServiceImpl implements IHotelRoomMoneyService {
    @Autowired
    private HotelRoomMoneyMapper hotelRoomMoneyMapper;

    public HotelRoomMoneyServiceImpl() {
        super();
    }

    public HotelRoomMoneyMapper getHotelRoomMoneyMapper() {
        return hotelRoomMoneyMapper;
    }

    public void setHotelRoomMoneyMapper(HotelRoomMoneyMapper hotelRoomMoneyMapper) {
        this.hotelRoomMoneyMapper = hotelRoomMoneyMapper;
    }

    @Override
    public List<HotelRoomMoney> list(HotelRoomMoney hotelRoomMoney, PageBean pageBean) {
        List<HotelRoomMoney> hotelRoomMoneyList = hotelRoomMoneyMapper.list(hotelRoomMoney);
        return hotelRoomMoneyList;
    }

    @Override
    public int updateByPrimaryKey(HotelRoomMoney record) {
        return hotelRoomMoneyMapper.updateByPrimaryKey(record);
    }

    @Override
    public HotelRoomMoney selectByPrimaryKey(Long id) {
        return hotelRoomMoneyMapper.selectByPrimaryKey(id);
    }
}
